package wms.api.core.bean;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import wms.api.core.cache.constants.StatusCode;

/**
 * Created by zhangbowen on 16-6-29.
 */
@SuppressWarnings("unchecked")
public class ResponseSuccessEntity extends ResponseEntity {
    public ResponseSuccessEntity(HttpStatus statusCode) {
        super(statusCode);
    }

    public ResponseSuccessEntity(StatusCode body, HttpStatus status) {
        super(new ResultSuccess(body, status), status);
    }

    public ResponseSuccessEntity(ResultSuccess resultSuccess, HttpStatus status) {
        super(resultSuccess, status);
    }
}
